package com.cskaoyan.day31.work1._04_proxy._01_static_proxy;

public class UserProxyApplication4 {
    public static void main(String[] args) {
        UserProxy4Common userProxy = new UserProxy4Common();
        InvocationHandler4Cola invocationHandler4 = new InvocationHandler4Cola();
        // InvocationHandler4 invocationHandler4 = new InvocationHandler4(){
        //     @Override
        //     public void invoke() {
        //         System.out.println("购买奶茶");
        //     }
        // };
        userProxy.setInvocationHandler4(invocationHandler4);
        userProxy.buyBreakfast("热干面");
        userProxy.buyLunch("小龙虾");
        userProxy.buyDinner("烧烤");
    }

}
